package com.bd.scm.module.room.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bd.scm.dao.mapper.room.TkqRoomMapper;
import com.bd.scm.domain.models.room.TkqRoom;
import com.bd.scm.module.room.service.TkqRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mason
 * @since 2019-09-09
 */
@Service
public class TkqRoomServiceImpl extends ServiceImpl<TkqRoomMapper, TkqRoom> implements TkqRoomService {

    @Autowired
    private TkqRoomMapper tkqRoomMapper;

    /**
     * 根据场所ID获取场所下配置的房间数量.
     *
     * @param placeId
     * @return
     */
    @Override
    public Integer getRoomCountByPlaceId(Long placeId) {
        return tkqRoomMapper.getRoomCountByPlaceId(placeId);
    }
}
